import {createApp} from 'vue'

//样式
import "@/styles/reset.scss"
import "element-plus/dist/index.css"

//根组件
import App from '@/App.vue'
//路由
import route from '@/router'
//UI组件
import ElementPlus from 'element-plus'
//状态管理
import {setupStore} from '@/store'

import * as icons from '@element-plus/icons-vue'

const app = createApp(App);

//导入图标组件
for (const name in icons){
    app.component(name,(icons as any)[name])
}

app.use(route);
app.use(ElementPlus);
setupStore(app)

//挂载
app.mount('#app')
